// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import VueRouter from 'vue-router';
import goods from '../src/components/goods/goods.vue'
import ratings from '../src/components/ratings/ratings.vue'
import seller from '../src/components/seller/seller.vue'
import VueResource from 'vue-resource'

Vue.use(VueResource)
Vue.use(VueRouter)
Vue.config.productionTip = false
Vue.extend(App)

/* eslint-disable no-new */
const routes = [
  {path: '/goods', component: goods},
  {path: '/ratings', component: ratings},
  {path: '/seller', component: seller}
]

const router = new VueRouter({
  routes,
  linkExactActiveClass: '',
  linkActiveClass: 'active'
})
router.push('goods')
new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
